package com.suixun.vo.credits;

import java.util.List;

/**
 * 积分商城同意数据返回
 * 
 * @author yh
 * @date 2017年11月17日
 */
public class ResponseVo<T> {

    /**
     * 单数据
     */
    private T data;

    /**
     * 列表
     */
    private List<T> list;

    /**
     * 记录总数
     */
    public Integer total = 0;

    public ResponseVo() {
    }

    public ResponseVo(T obj) {
        this.data = obj;
    }

    public ResponseVo(List<T> list) {
        this.list = list;
    }

    public ResponseVo(List<T> list, Integer total) {
        this.list = list;
        this.total = total;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }
    
}
